In addition to the extension of the C 'struct' type provided by TC, C++ provides a new user-defined type using the 'class' keyword. Classes are defined with 'class' using the same syntax as classes defined with 'struct', except that it is possible to apply a variety of scope restrictions to the instance variables and methods of the resulting class.
class Rolls:Automobile
{
protected:
char *favorite_wine[100];
int lookup_wine_list(char*);
public:
void restock_wines(int);
};
The keywords 'private', 'protected', and 'public' cause members of the class to be